import {PluginCommand} from "./PluginCommand";

class SoundInsulationMaterialCommand extends PluginCommand{
  constructor() {
    super();
  }

  async getInstanceTree(cb) {
    if(this.query) {
      let res = await this.query.getInstanceTree();
      return res?.data?.instanceTree;
    }
  }

  async getInstanceProtoRefByInstanceId(params, cb) {
    if (this.toolQuery) {
      let res = await this.toolQuery.getInstanceProtoRefByInstanceId(params);
      return res.data.instance;
    }
  }

  async getDocVersionAttribute(params, cb) {
    if (this.toolQuery) {
      let res = await this.toolQuery.getDocVersionAttribute(params);
      return res.data;
    }
  }
}

const soundInsulationMaterialCommand = new SoundInsulationMaterialCommand();
export {soundInsulationMaterialCommand};
